import request from "@/utils/request";

/**
 * 获取oss签名
 */
export const policy = () => {
    return request({
        url: '/core/project/getOssSign',
        method: 'get'
    });
};

/**
 * 上传视频后存储数据
 * data{
 *     url:str,type:str,id:number
 * }
 */
export const uploadVideo = (data) => {
    return request({
        url: '/core/project/uploadVideo',
        method: 'put',
        data:data
    });
};